<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<!--
************************************************************************************
* Copyright (C) 2009-2010 Openbravo S.L.U.
* Licensed under the Openbravo Commercial License version 1.0
* You may obtain a copy of the License at http://www.openbravo.com/legal/obcl.html
* or in the legal folder of this module distribution.
************************************************************************************
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Initial Data Load</title>
<link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS"/>
<script language="JavaScript" type="text/javascript" id="paramDirectory">
var baseDirectory = "../../../../../web/";
</script>
<script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
<script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" id="paramLanguage">
  var defaultLang = "en_US";
</script>
<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
<script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>

<script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
<script language="JavaScript" src="../../../../../web/js/genericTree.js" type="text/javascript"></script>
<script language="JavaScript" src="../web/js/appStatus.js" type="text/javascript"></script>
<script type="text/javascript">
      //all dojo.require above this line
      dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible 
</script>
<script language="JavaScript" type="text/javascript">
function validate() {
    var frm = document.frmImport;
    if ((frm.inpFile.value==null || frm.inpFile.value=="")){
        setWindowElementFocus(frm.inpFile);
        showJSMessage(7);
        return false;
    }
		   	    if ((frm.inpCatalogo.value==null || frm.inpCatalogo.value=="")){
        setWindowElementFocus(frm.inpCatalogo);
        showJSMessage(7);
        return false;
    }
	   	    if ((frm.inpcBpartnerId.value==null || frm.inpcBpartnerId.value=="")){
        setWindowElementFocus(frm.inpFile);
        showJSMessage(7);
        return false;
    }
		if ((frm.inpCoefCompra.value==null || frm.inpCoefCompra.value=="")){
        setWindowElementFocus(frm.inpCoefCompra);
        showJSMessage(7);
        return false;
    }
		    if ((frm.inpCoefVenta.value==null || frm.inpCoefVenta.value=="")){
        setWindowElementFocus(frm.inpCoefVenta);
        showJSMessage(7);
        return false;
    }
    //setProcessingMode('window', true);
    
    return true;
}

function setResult(r) {
  var t = document.getElementById('paramData');
  t.innerHTML = r;
  return true;
}

</script>

<script language="JavaScript" type="text/javascript">
keyArray[0] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpBpartnerId_DES', document.frmMain.inpBpartnerId_DES.value, 'Command', 'KEY');", "inpBpartnerId_DES", "null");

function onloadFunctions() {
}
</script>
    <script language="JavaScript" type="text/javascript">
    function onLoadDo(){
        setProcessingMode('window', false);
        this.windowTables = new Array(
          new windowTableId('client', 'buttonOK')
        );
        setWindowTableParentElement();
        this.tabsTables = new Array(
          new tabTableId('tdtopTabs')
        );
        setTabTableParentElement();
        enableShortcuts('edition');
        setBrowserAutoComplete(false);
        
        try {
          onloadFunctions();
        } catch (e) {}
        xx();
        resizeArea();
        updateMenuIcon('buttonMenu');

    }

    function onResizeDo(){
        resizeArea();
    }
    </script>
    

    
<script type="text/javascript">
function validar(e) {
    tecla = (document.all) ? e.keyCode : e.which;
    if (tecla==8) return true; //Tecla de retroceso (para poder borrar)
    if (tecla==190) return true; //Punto ( En este caso para diferenciar los decimales )
    if (tecla==110) return true; //Punto ( En este caso para diferenciar los decimales )
    if (tecla==44) return true; //Coma ( En este caso para diferenciar los decimales )
    if (tecla==48) return true;
    if (tecla==49) return true;
    if (tecla==50) return true;
    if (tecla==51) return true;
    if (tecla==52) return true;
    if (tecla==53) return true;
    if (tecla==54) return true;
    if (tecla==55) return true;
    if (tecla==56) return true;
    if (tecla==57) return true;
    if (tecla==96) return true;
    if (tecla==97) return true;
    if (tecla==98) return true;
    if (tecla==99) return true;
    if (tecla==100) return true;
    if (tecla==101) return true;
    if (tecla==102) return true;
    if (tecla==103) return true;
    if (tecla==104) return true;
    if (tecla==105) return true;
    patron = /1/; //ver nota
    te = String.fromCharCode(tecla);
    return patron.test(te); 
} 
</script>

   
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
<!--body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();" id="paramMensaje"-->
  <form name="frmImport" method="post" action="Prod_import.html" enctype="multipart/form-data" id="form">
  <input type="hidden" name="Command"></input>
  <input type="hidden" name="inpLastFieldChanged" value="">
  <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
    <tr>
      <td valign="top" id="tdleftTabs"></td>
      <td valign="top">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Left">
          <tr><td class="Main_NavBar_bg_left" id="tdleftSeparator"></td></tr>
          <tr><td class="Main_ToolBar_bg_left" valign="top"></td></tr>
          <tr><td class="Main_Client_bg_left"></td></tr>
          <tr><td class="Main_Bottom_bg_left"></td></tr>
        </table>
      </td>
      <td valign="top">
        <div class="Main_ContentPane_NavBar" id="tdtopButtons"></div>
        <div class="Main_ContentPane_ToolBar" id="paramToolBar"></div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_TabPane" id="tdtopTabs">
          <tr id="paramParentTabContainer"></tr>
          <tr id="paramMainTabContainer"></tr>
          <tr id="paramChildTabContainer"></tr>
        </table>
        <div class="Main_ContentPane_Client" style="overflow: auto; display: none;" id="client">
                <table class="dojoTabContainer" border="0" cellpadding="0" cellspacing="0" width="100%" summary="">
                  <tr>
                    <td>
                      <table class="dojoTabPaneWrapper" border="0" cellpadding="0" cellspacing="0" width="100%" summary="">
                        <tr>
                          <td>
        <!-- MessageBox -->
          <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
            <tbody>
              <tr class="MessageBox_TopMargin">
                <td class="MessageBox_LeftMargin"></td>
                <td></td>
                <td class="MessageBox_RightMargin"></td>
              </tr>
              <tr>
                <td class="MessageBox_LeftMargin"></td>
                <td>

                  <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
                    <tbody>
                    <tr>
                      <td class="MessageBox_LeftTrans">
                        <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
                          <tbody>
                          <tr>
                            <td class="MessageBox_TopLeft"></td>
                          </tr>
                          <tr>
                            <td class="MessageBox_Left"></td>
                          </tr>
                          </tbody>
                        </table>
                      </td>
                      <td class="MessageBox_bg">

                        <table class="MessageBox_Top">
                        <tbody>
                          <tr>
                            <td>
                              <span>
                              <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
                                <tbody>
                                <tr>
                                  <td class="MessageBox_Icon_ContentCell">
                                    <div class="MessageBox_Icon"></div>
                                  </td>
                                  <td style="vertical-align: top;" id="messageBoxIDContent">
                                    <span>
                                      <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
                                        xxInfo: AccessTableWithNoView
                                      </div>
                                      <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
                                        xxThe current information is empty.
                                      </div>
                                      <div class="MessageBox_TextSeparator"></div>
                                    </span>
                                  </td>
                                </tr>
                                </tbody>
                              </table>
                              </span>
                            </td>
                          </tr>
                          </tbody>
                        </table>

                      </td>
                      <td class="MessageBox_RightTrans">
                        <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
                          <tbody>
                          <tr>
                            <td class="MessageBox_TopRight"></td>
                          </tr>
                          <tr>
                            <td class="MessageBox_Right"></td>
                          </tr>
                          </tbody>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td rowspan="2" class="MessageBox_BottomLeft">
                      </td>
                      <td class="MessageBox_BottomTrans MessageBox_bg">
                      </td>
                      <td rowspan="2" class="MessageBox_BottomRight">
                      </td>
                    </tr>
                    <tr>
                      <td class="MessageBox_Bottom">
                      </td>
                    </tr>
                    </tbody>
                  </table>
                </td>
                <td class="MessageBox_RightMargin"></td>
              </tr>
              <tr class="MessageBox_BottomMargin">
                <td class="MessageBox_LeftMargin"></td>
                <td></td>
                <td class="MessageBox_RightMargin"></td>
              </tr>
            </tbody>
          </table>
        <!-- MessageBox END -->
              <table class="Main_Client_TableEdition">
                <tr>
                  <td class="TableEdition_OneCell_width"></td>
                  <td class="TableEdition_OneCell_width"></td>
                  <td class="TableEdition_OneCell_width"></td>
                  <td class="TableEdition_OneCell_width"></td>
                  <td class="TableEdition_OneCell_width"></td>
                  <td class="TableEdition_OneCell_width"></td>
                </tr>
                
                <tr>
				  <td colspan="6">
				    <table class="Popup_ContentPane_InfoBar" cellspacing="0" cellpadding="0">
				      <tbody>
				        <tr>
				          <td class="Popup_InfoBar_Icon_cell">
				            <img class="Popup_InfoBar_Icon_info" border="0" src="../web/images/blank.gif"/>
				          </td>
				          <td class="Popup_InfoBar_text_table">
				            <table>
				              <tbody>
				                <tr>
				                   <td id="helpDiscard" class="Popup_InfoBar_text">
				                     <span id="processHelp">Carga de Catalogo: Introduzca todos los datos.</span>
				                   </td>
				                </tr>
				              </tbody>
				            </table>
				          </td>
				        </tr>
				      </tbody>
				    </table>
				  </td>
				</tr>
				<tr class="FieldGroup_TopMargin"/>
                <tr class="FieldGroup_TopMargin"/>
                <tr>
                  <td colspan="6">
                    <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
                    <tbody>
                      <tr class="FieldGroup_TopMargin"/>
                      <tr>
                        <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
                        <td class="FieldGroupTitle">Import</td>
                        <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
                        <td class="FieldGroupContent"/>
                      </tr>
                      <tr class="FieldGroup_BottomMargin"/>
                    </tbody>
                    </table>
                  </td>
                </tr>
                
                <tr>
                  <td class="TitleCell"><span class="LabelText">File</span></td>
                  <td class="TextBox_ContentCell" colspan="3">
                    <input type="text" style="font-size: 0pt; margin: 0; padding: 0; border:0; width:0px; height:0px;" onfocus="isInputFile=true;" onblur="isInputFile=false;"></input>
                    <input type="file" class="dojoValidateValid required TextBox_TwoCells_width" name="inpFile" size="50"  value=""></input>
					<input type="text" style="font-size: 0pt; margin: 0; padding: 0; border:0; width:0px; height:0px;" onfocus="isInputFile=true;" onblur="isInputFile=false;"></input>
                  </td>
                  <td class="TableEdition_OneCell_width"></td>
                </tr>
                <tr>
                  <td class="TitleCell"><span class="LabelText">Catalogo</span>&nbsp;</td>
      			  <td class="TextBox_ContentCell"> <input class="dojoValidateValid required TextBox_TwoCell_width" type="text" name="inpCatalogo" value=""></input></td>

                  <td class="TitleCell"><span class="LabelText">Business Partner</span></td>
                  <td class="Combo_ContentCell" colspan="2">
                    <select name="inpcBpartnerId" class="Combo required Combo_TwoCells_width" id="paramBpartnerId">
                    <option value=""></option>
                    <div id="reportC_BPARTNERID"></div>
                    </select>
                  </td>



                </tr>
            <tr>
          		  <td class="TitleCell"><span class="LabelText">Coef. Compra</span>&nbsp;</td>
      				<td class="TextBox_ContentCell"> <input class="dojoValidateValid  required TextBox_OneCell_width number" type="text" name="inpCoefCompra" onKeyPress="return validar(event)" value=""></input>
      			  </td>
					<td class="TitleCell"><span class="LabelText">Coef. Venta</span>&nbsp;</td>
      				<td class="TextBox_ContentCell"> <input class="dojoValidateValid  required TextBox_OneCell_width number" type="text" name="inpCoefVenta" onKeyPress="return validar(event)" value=""></input>
      			  </td>

                  <td class="TitleCell"></td>
                  <td class="Button_LeftAlign_ContentCell">
                    <div>
                      <button type="button" 
                        id="buttonProcess" 
                        class="ButtonLink" 
                        onclick="submitCommandForm('SAVE',true, null, null, null, true);return false;" 
                        onfocus="buttonEvent('onfocus', this); window.status='Process'; return true;" 
                        onblur="buttonEvent('onblur', this);" 
                        onkeyup="buttonEvent('onkeyup', this);" 
                        onkeydown="buttonEvent('onkeydown', this);" 
                        onkeypress="buttonEvent('onkeypress', this);" 
                        onmouseup="buttonEvent('onmouseup', this);" 
                        onmousedown="buttonEvent('onmousedown', this);" 
                        onmouseover="buttonEvent('onmouseover', this); window.status='Process'; return true;" 
                        onmouseout="buttonEvent('onmouseout', this);">
                        <table class="Button">
                          <tr>
                            <td class="Button_left"><img class="Button_Icon Button_Icon_process" alt="Process" title="Process" src="../../../../../web/images/blank.gif" border="0" /></td>
                            <td class="Button_text Button_width">Process</td>
                            <td class="Button_right"></td>
                          </tr>
                        </table>
                      </button>
                    </div>
                  </td>
                  <td class="ContentCell"></td>
                </tr>
                
                <tr>
                  <td class="TableEdition_OneCell_width">&nbsp</td>
                  <td class="TableEdition_OneCell_width">&nbsp</td>
                  <td class="TableEdition_OneCell_width">&nbsp</td>
                  <td class="TableEdition_OneCell_width">&nbsp</td>
                  <td class="TableEdition_OneCell_width">&nbsp</td>
                  <td class="TableEdition_OneCell_width">&nbsp</td>
                </tr>
            
            <tr>
                  <td colspan="6">
                    <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
                    <tbody>
                      <tr class="FieldGroup_TopMargin"/>
                      <tr>
                        <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
                        <td class="FieldGroupTitle">Log</td>
                        <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
                        <td class="FieldGroupContent"/>
                      </tr>
                      <tr class="FieldGroup_BottomMargin"/>
                    </tbody>
                    </table>
                  </td>
                </tr>
                
                <tr>
				<td class="TextArea_ContentCell" colspan="6">
				<textarea id="paramLog" readonly="true" onchange="validateTextArea(this.id);logChanges(this);return true;" oncontextmenu="changeToEditingMode('oncontextmenu');" onpaste="changeToEditingMode('onpaste');" oncut="changeToEditingMode('oncut');" onkeypress="changeToEditingMode('onkeypress');" onkeydown="changeToEditingMode('onkeydown');" onkeyup="" name="inplog" maxlength="255" required="false" class="dojoValidateValid readonly TextArea_SixCells_width TextArea_VeryLarge_height"></textarea>
				</td>
				</tr>
                <tr>
                <td class="TextArea_ContentCell" colspan="6">
                <textarea id="paramErr" readonly="true" onchange="validateTextArea(this.id);logChanges(this);return true;" oncontextmenu="changeToEditingMode('oncontextmenu');" onpaste="changeToEditingMode('onpaste');" oncut="changeToEditingMode('oncut');" onkeypress="changeToEditingMode('onkeypress');" onkeydown="changeToEditingMode('onkeydown');" onkeyup="" name="inplog" maxlength="255" required="false" class="dojoValidateValid readonly TextArea_SixCells_width TextArea_VeryLarge_height"></textarea>
                </td>
                </tr>            
              </table>
                <br></br>
                <div id="paramData"></div>

                      <!-- USER CONTROLS -->
                </td>
              </tr>
              </table>
              </td>
            </tr>
          </table>
        </div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Menu_ContentPane_Bottom" id="tdbottomSeparator">
          <tr>
            <td class="Main_Bottom_bg"><img src="../../../../../web/images/blank.gif" border="0"></td>
          </tr>
        </table></td>
      <td valign="top">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Right" id="tdrightSeparator">
          <tr><td class="Main_NavBar_bg_right"></td></tr>
          <tr><td class="Main_ToolBar_bg_right" valign="top"></td></tr>
          <tr><td class="Main_Client_bg_right"></td></tr>
          <tr><td class="Main_Bottom_bg_right"></td></tr>
        </table>
      </td>
    </tr>
  </table>
</form>
</body>
</html>
